import request from '../request'
// 分类的接口地址
const TWOCATE_URL='/category'
const CATESUB_URL='/category/sub/filter'
const CATETHREE_URL='/category/goods/temporary'
/*
    分类数据的api
*/
export function getCateApi(id){
    return request({
        url:TWOCATE_URL + '?id=' + id,
        method:'get'
    })
}
/*
    二级分类数据的api
*/
export function getSubApi(id){
    return request({
        url:CATESUB_URL + '?id=' + id,
        method:'get'
    })
}
/*
    三级分类数据的api
*/
export function getSubGoods(params){
    return request({
        url:CATETHREE_URL,
        method:'post',
        data:params
    })
}